package com.huang.decorator.service.impl;

import com.huang.decorator.service.Component;

/**
 * <p></p>
 *
 * @author aneng huang
 * @since 2020-10-28 15:22:11
 */
public class DecoratorImpl implements Component {

    protected Component component;

    public void setComponent(Component component) {
        this.component = component;
    }

    @Override
    public void operation() {
        if (null != component) {
            component.operation();
        }
    }
}
